package com.sergiandreplace.kaboom.util;

import com.sergiandreplace.kaboom.browser.FileIcon;

public class ArrayUtil
{
	public static FileIcon[] insertElement(FileIcon[] original, FileIcon element, int in)
	{
		int length = original.length;
		FileIcon destination[] = new FileIcon[length + 1];
		System.arraycopy(original, 0, destination, 0, in);
		destination[in] = element;
		System.arraycopy(original, in, destination, in + 1, length - in);
		return destination;
	}
}
